{include file="inc/header_index_mui.html"}
<script src="js/jquery-1.8.2.min.js"></script>
<div class="mui-content">

<input type="hidden" value="<?=$_GET['money']?>" name="money" id="money" />			
	<div>
		<img class="aui-col-10" src="image/banner.png" alt="" />
	</div>
	<ul class="mui-table-view">
		{foreach from=$data.payment_list item=payment key=key}
		<li class="mui-table-view-cell mui-input-row mui-radio">
			<lable>{$payment.name}</lable>
			<input type="radio" name="payment_id" id="payment_id" value="{$payment.id}"  {if $key eq 0}checked="checked"{/if}>
		</li>

		{/foreach}

		 <li class="mui-table-view-cell mui-input-row mui-checkbox aui-color-red">
			会员享受九八折优惠 <a class="fr"href="">开通</a>
		</li>
	</ul>
</div>

<footer class='mui-bar mui-bar-footer mui-row' style="background:#fff; box-shadow:none; padding:0">  
<div class="mui-col-sm-9 mui-col-xs-4 aui-color-blue aui-pad-15">原价:<br /><?=$_GET['money']?>元</div>
<div class="mui-col-sm-9 mui-col-xs-5 aui-color-blue aui-pad-15"><del>会员:<br /><?=ceil($_GET['money']*0.8)?>元</del></div>
<div class="mui-col-sm-3 mui-col-xs-3 mui-text-center aui-background-lightblue" onclick="go()"><a style="display:block; font:16px/60px '微软雅黑';" class="aui-color-white" href="javascript:void(0)">确定</a></div>
</footer>

<script>
function go(){
	$.ajax( {  
	  url:'{url r="index" p="uc_charge#done"}', 
	  data:{  
		   money : $("#money").val(),  
		   payment_id : $("#payment_id").val(),
	  },  
	  type:'post',  
	  cache:false,  
	  dataType:'json',  
	  success:function(data) {  
		if(data.status ==1 ){  
		  window.location.href=data.jump;  
		}else{  
		  alert(data.info);
		}  
	   },  
	   error : function() {  
		 alert("错误码：10001");  
	   }  
	}); 
}
</script>